@inject('appRepository', 'App\Repositories\AppRepository')
<div class="container-fluid p-0">
    <nav class="navbar navbar-dark navbar-expand-lg bg-black px-5">
        <a class="navbar-brand" href="#">
            <img src="{{asset('images/logo.png')}}" width="60" height="60" alt="" loading="lazy">
        </a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse"   id="navbarNavAltMarkup">
            <ul class="navbar-nav d-flex justify-content-end w-100 pr-5 ">
                @foreach($appRepository->getNavByParentId(0) as $item)
                    <li class="nav-item {{$item->point_url == request()->getRequestUri()? 'active':''}} ">
                        <a class="nav-link" target="{{$item->point_type == 3 ? '_black':'_self' }}" href="{{url($item->point_url)}}">{{$item->name}}</a>
                    </li>
                @endforeach
            </ul>
        </div>
    </nav>
</div>

